<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改用户</title>
</head>
<body>
<h3>修改美团骑手</h3>
<hr/>
<form th:action="@{/user/update}" method="post" th:object="${user1}">
    <input type="hidden" name="id" th:value="*{id}">
    姓名：<input type="text" name="name" th:value="*{name}"/><br/>
    密码：<input type="text" name="pwd" th:value="*{pwd}"/><br/>
    性别: <input type="radio" name="sex" value="1" th:checked="*{sex} eq '1'?'checked':'false'">女
          <input type="radio" name="sex" value="0" th:checked="*{sex} eq '2'?'checked':'false'">男<br/>
    生日:<input type="text" name="birth" th:value="*{#dates.format(birth,'yyyy-MM-dd')}"><br/>
    <!--性别：<input type="radio" name="sex" value="1" th:value="*{pwd}"/>女
    <input type="radio" name="sex" value="2"/>男<br/>
    生日：<input type="date" name="birth"/><br/>-->
    <input type="submit" value="确定"/><br/>

    <!--性别:<input type="radio" name="sex" value="1" th:checked="*{sex} eq '1'?'checked':'false'">女
<input type="radio" name="sex" value="0" th:checked="*{sex} eq '0'?'checked':'false'">男<br/>
生日:<input type="text" name="birth" th:value="*{#dates.format(birth,'yyyy-MM-dd')}"><br/>-->
</form>
</body>
</html>
